// 应用组建配置仓库

// 部门表单
import * as departmentForm from '@/components/ivew_conf/organization/department_form'
import * as companyForm from '@/components/ivew_conf/organization/company_form'
import * as personalForm from '@/components/ivew_conf/organization/personal_form'
import {  department as departmentLoadForm, personal as personalLoadForm} from '@/components/ivew_conf/organization/form_mod_conf'
import * as organizationFormMods from '@/components/ivew_conf/organization/organization_form_mod_conf'
import personalFormMod from '@/components/ivew_conf/organization/personal_detailed'
import topBarNavConf from '@/components/ivew_conf/top_bar_nav_conf'

class mod_conf{


    state = {

        // 组织管理-部门表单
        departmentForm,

        // 组织管理-公司表单
        companyForm,

        // 人员表单
        personalForm,

        // 部门动态表单配置
        departmentLoadForm,

        // 人员动态表单配置
        personalLoadForm,

        // 人员表单数据模型
        personalFormMod,

        // 部门管理动态配置
        organizationFormMods,

        // 权限预设
        powerPreConf:[],

        // 导航
        topBarNavConf,

       
    }


    mutations = {

        // 设置权限预设
        setPowerPreConf (state, data, target){

            state['powerPreConf'] = data;

        },


    }

    getters = {

        
    }
    

    actions = {

        // 提交更新
        update({state, dispatch, commit}, {target, data}){
            state[target] = data
        }

    }

    
}

export default mod_conf